//
//  CollectionViewCell.m
//  meiyaya
//
//  Created by 张领瑞 on 2017/9/2.
//  Copyright © 2017年 ShiFeiEr. All rights reserved.
//

#import "CollectionViewCell.h"
#import "PrefixHeader.pch"
@interface CollectionViewCell  ()

@end

@implementation CollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)configureViewWithCustomObj:(id)obj{
    if (!obj) return;
    CourseAliveModel *model = (CourseAliveModel *)obj;
    [self.contentImageView setImageWithURL:[NSURL URLWithString:model.contentImageUrl] placeholderImage:PLACEHOLDERIMAGE];
    self.classBtn.titleLabel.text = model.category;
    [self.broadcaster_icon setImageWithURL:[NSURL URLWithString:model.broadcaster_icon_url] placeholderImage:PLACEHOLDERIMAGE];
    self.broadcaster_name.text = model.broadcaster_name;
    self.broadcaster_count.text = model.broadcaster_count;
}

@end
